home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / minray / ray.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-06  |  671 b   |  17 lines

  1. /* ray.h for test1, first test scene */
  2. #define DEPTH 3        /* max ray tree depth */
  3. #define SIZE 32        /* resolution of picture in x and y */
  4. #define AOV 25        /* total angle of view in degrees */
  5. #define NSPHERE 5    /* number of spheres */
  6.  
  7. AMBIENT = {.02, .02, .02};    /* ambient light color */
  8.  
  9. /* sphere: x y z  r g b  rad  kd ks kt kl  ir */
  10. SPHERE = {
  11.      0., 6., .5,    1., 1., 1.,   .9,   .05, .2, .85, 0.,  1.7,
  12.     -1., 8., -.5,   1., .5, .2,   1.,   .7, .3, 0., .05,   1.2,
  13.      1., 8., -.5,   .1, .8, .8,   1.,   .3, .7, 0., 0.,    1.2,
  14.      3., -6., 15.,  1., .8, 1.,   7.,   0., 0., 0., .6,    1.5,
  15.     -3., -3., 12.,  .8, 1., 1.,   5.,   0., 0., 0., .5,    1.5,
  16. };
  17.